import {
  baseUrl
} from '../env'
import {post,postBlob} from '../../util/axiosHelper'

/**
 * 用户注册
 * @param data
 * @param errorMsg
 * @param callback
 */
export const userLogon  = (data, errorMsg, callback) => post(baseUrl + '//os-user/add', data, errorMsg, callback);

/**
 * 用户登录
 * @param data
 * @param errorMsg
 * @param callback
 */
export const userLogin  = (data, errorMsg, callback) => post(baseUrl + '//os-user/login', data, errorMsg, callback);
